From 4eda23f7c0a6a3bfe585924b836de8ae0a99f8cf Mon Sep 17 00:00:00 2001 From: Inokentiy Babushkin Date: Fri, 2 Dec 2016 16:00:58 +0100 Subject: [PATCH] Fixed broken testcase for string-based form of rustflags config key. --- tests/rustflags.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/rustflags.rs b/tests/rustflags.rs index 1cf9e96cd..f5117c313 100644 --- a/tests/rustflags.rs +++ b/tests/rustflags.rs @@ -997,11 +997,12 @@ fn target_rustflags_string_and_array_form1() { #[test] fn target_rustflags_string_and_array_form2() { let p1 = project("foo") - .file("Cargo.toml", &format!(r#" + .file("Cargo.toml", r#" [package] name = "foo" version = "0.0.1" - + "#) + .file(".cargo/config", &format!(r#" [target.{}] rustflags = ["--cfg", "foo"] "#, rustc_host())) @@ -1016,11 +1017,12 @@ fn target_rustflags_string_and_array_form2() { ")); let p2 = project("foo") - .file("Cargo.toml", &format!(r#" + .file("Cargo.toml", r#" [package] name = "foo" version = "0.0.1" - + "#) + .file(".cargo/config", &format!(r#" [target.{}] rustflags = "--cfg foo" "#, rustc_host())) -- 2.30.2